package com.gitee.config;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @description: TODO
 * @author: chennl
 * @date: 2021/12/29
 * @version: 1.0
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "jwt")
public class JWTConfig {

    @ApiModelProperty(value = "JWT存储的请求头")
    private String tokenHeader;

    @ApiModelProperty(value = "JWT加解密使用的密钥")
    private String secret;

    @ApiModelProperty(value = "JWT的超期限时间(60*60*24*7)")
    private Long expiration;

    @ApiModelProperty(value = "JWT负载中的token前缀")
    private String tokenPrefix;

    @ApiModelProperty(value = "JWT存储的请求头")
    private String refreshTokenHeader;

}
